package com.fernfx.xingtan.common.pullrefresh;

import android.widget.TextView;

import com.fernfx.xingtan.common.base.BaseModel;
import com.fernfx.xingtan.common.base.BasePresenter;
import com.fernfx.xingtan.common.base.BaseView;
import com.fernfx.xingtan.common.network.IRequestCallback;
import com.fernfx.xingtan.my.entity.HaveDomainEntity;
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout;

import java.util.Map;

/**
 * Created by admin on 2018/8/20.
 */

public interface PullToRefreshContract {
    interface View extends BaseView {
        void showHistroy(String jsonText);
    }

    interface Presenter {
        void init(BaseView view);

        void request(String requestUrl,Map<String,Object> requestArgsMap,boolean isGet);

        void detachView();

        void returnDomain(String territoryId,HaveDomainEntity.ObjBean.RecordsBean haveDomainBean,TextView TextView);
    }

    interface Model{
        void request(String requestUrl, Map<String, Object> requestArgsMap, IRequestCallback iRequestCallback, boolean isGet);

        void returnDomain(Map<String,Object> requestArgsMap,IRequestCallback iRequestCallback);
    }
}
